package main

import (
	"fmt"
	"github.com/garyburd/redigo/redis"
	"log"
)

func RedisTest1() {
	c1, err := redis.Dial("tcp", "127.0.0.1:6379")
	if err != nil {
		log.Fatalln(err)
	}
	defer c1.Close()
	rec1, err := c1.Do("GET", "name")
	c1.Do("SET", "women", "2")
	_, err = c1.Do("lpush", "women1", "2", "3", "3", "3", "3", "3", "3", "3", "9")
	fmt.Print(string(rec1.([]byte)))
}
func main() {
	RedisTest1()
}
